-- CALC_REVIVE_COST

----------------------------
-- 计算地牢复活的消耗
-- @param user        玩家对象
return function(user)
    -- 获取已复活次数
    local costs = { 5, 10, 20, 40, 80, 100, };
    local reviveTimes = user:getReviveTimes();
    local value;

    if reviveTimes < 6 then
        value = costs[reviveTimes + 1];
    else
        value = 100;
    end

    -- 计算收魂者冈布奥天赋降低复活消耗
    local prop = PropM.combine(user, "resur_spend", 1);
    value = PropM.apply(prop, value);

    return { 2, "gem",  value};
end